<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/1
 * Time: 9:55
 */

namespace app\admin\model;


use think\Model;

class Regulation extends Model
{
    protected $insert = [
        'status'=>0,  //正常状态
        'create_time'=>NOW_TIME,
    ];

    //获取后台用户名称
    public function user()
    {
        return $this->hasOne('Member', 'id', 'create_user');
    }
}